package Conexao;

import java.sql.DriverManager;
import java.sql.Connection;

public class Conexao {

    public static Connection getConnection() throws Exception {
        Class.forName("oracle.jdbc.driver.OracleDriver");
        String url = "jdbc:oracle:thin:@localhost:1521:XE";
        return DriverManager.getConnection(url, "hr", "hr");

    }
}
